//该文件用于配置动态路由


export default [
    {
        path: "/home",
        name: "首页",
        component: () => import('../layout/basic-layout.vue'),
        redirect: "/home/index",
        meta: {
            name:[[{name:"首页"}]],
        },
        children: [
            {
                path: "index",
                name:"",
                component: () => import('../views/home/index.vue'),
                meta: {
                    name:[[{name:"首页"}]],
                },
            }
        ]
    },
    {
        path: "/monitor",
        name: "监控中心",
        component: () => import('../layout/basic-layout.vue'),
        redirect: "/monitor/index",
        meta: {
            name:[{name:"监控中心"}],
        },

        children: [
            {
                path: "index",
                name: "",
                component: () => import('../views/monitor/index.vue'),
                meta: {
                    name:[[{name:"监控中心"}]],
                }
            },

            {
                path: "monitorDetails",
                name: "充电桩",
                component: () => import('../views/monitor/details.vue'),
                meta: {
                    name:[[{name:"充电桩"}]],
                }
            }
        ]
    },
    {
        path: "/operation",
        name: "运营管理",
        component: () => import('../layout/basic-layout.vue'),
        meta: {
            name:[[{name:"运营管理"}]],
        },
        redirect: "/operation/index",
        children: [

            {
                path: "index",
                name: "",
                component: () => import('../views/operation/index.vue'),
                meta: {
                    name:[[{name:"运营管理"}]],
                },
            },
            {
                path: "record",
                name: "充电记录",
                meta: {
                    name:[[{name:"充电记录"}]],
                },
                component: () => import('../views/operation/record.vue'),
                // children:[
                //     {
                //         path: "details",
                //         name: "充电记录详情",
                //         component: () => import('../views/operation/index.vue'),
                //         meta: {
                //           name:[[{name:"充电记录详情"}]],
                //         },
                //     }
                // ]
            },
            {
                path: "operationTransaction",
                name: "交易流水",
                meta: {
                    name:[[{name:"交易流水"}]],
                },
                component: () => import('../views/operation/transaction.vue')
                
            },
        ]
    },
    {
        path: "/equipment",
        name: "设备管理",
        redirect: "/equipment/index",//可以使点击一级路由时，显示二级路由
        component: () => import('../layout/basic-layout.vue'),
        meta:{
            name:[[{name:"设备管理"}]],
            
        },
        children: [
            {
                path: "index",
                name: "",
                component: () => import('../views/equipment/index.vue'),
                meta:{
                    name:[[{name:"设备管理"}]],
                    
                },
            },
            {
                path: "ChargingStation",
                name: "充电站管理",
                component: () => import('../views/equipment/ChargingStation.vue'),
                meta:{
                    name:[[{name:"充电站管理"}]],
                    
                },
            },
        ]
    },
    {
        path: "/charge",
        name: "计费管理",
        redirect: "/charge/index",
        meta:{
            name:[[{name:"计费管理"}]],
            
        },
        component: () => import('../layout/basic-layout.vue'),
        children: [
            {
                path: "index",
                name: "",
                component: () => import('../views/charge/index.vue'),
                meta:{
                    name:[[{name:"计费管理"}]],
                    
                },
            },
            {
                path: "chargeDetails",
                name: "收费模板详情",
                component: () => import('../views/charge/details.vue'),
                meta:{
                    name:[[{name:"收费模板详情"}]],
                    
                },
            },
        ]
    },
    {
        path: "/statistics",
        name: "统计报表",
        redirect: "/statistics/index",
        meta:{
            name:[[{name:"统计报表"}]],
            
        },
        component: () => import('../layout/basic-layout.vue'),
        children: [
            {
                path: "index",
                name: "",
                component: () => import('../views/statistics/index.vue'),
                meta:{
                    name:[[{name:"统计报表"}]],
                    
                },
            },
            {
                path: "alarm",
                name: "营收统计",
                component: () => import('../views/statistics/alarm.vue'),
                meta:{
                    name:[[{name:"营收统计"}]],
                    
                },
            },
            {
                path: "revenue",
                name: "告警统计",
                component: () => import('../views/statistics/revenue.vue'),
                meta:{
                    name:[[{name:"告警统计"}]],
                    
                },
            },
        ]
    },
]
// export default [
//     {
//         path: "/home",
//         name: "首页",
//         component: () => import('../layout/basic-layout.vue'),
//         redirect: "/home/index",
//         meta: {
//             name:[{name:"首页"}],
//         },
//         children: [
//             {
//                 path: "index",
//                 name:"首页",
//                 component: () => import('../views/home/index.vue'),
//                 meta: {
//                     name:[{name:"首页"}],
//                 },
//             }
//         ]
//     },
//     {
//         path: "/monitor",
//         name: "监控中心",
//         component: () => import('../layout/basic-layout.vue'),
//         redirect: "/monitor/index",
//         meta: {
//             name:[{name:"监控中心"}],
//         },
//         children: [
//             {
//                 path: "index",
//                 name: "监控中心",
//                 component: () => import('../views/monitor/index.vue'),
//                 meta: {
//                     name:[{name:"监控中心"}],
//                 }
//             },

//             {
//                 path: "monitorDetails",
//                 name: "充电桩",
//                 component: () => import('../views/monitor/details.vue'),
//                 meta: {
//                     name:[{name:"充电桩"}],
//                 }
//             }
//         ]
//     },
//     {
//         path: "/operation",
//         name: "运营管理",
//         component: () => import('../layout/basic-layout.vue'),
//         meta: {
//             name:[{name:"运营管理"}],
//         },
//         redirect: "/operation/index",
//         children: [

//             {
//                 path: "index",
//                 name: "运营管理",
//                 component: () => import('../views/operation/index.vue'),
//                 meta: {
//                     name:[{name:"运营管理"}],
//                 },
//             },
//             {
//                 path: "operationTransaction",
//                 name: "充电记录",
//                 meta: {
//                     name:[{name:"充电记录"}],
//                 },
//                 component: () => import('../views/operation/transaction.vue'),
                
//             },
//         ]
//     },
//     {
//         path: "/equipment",
//         name: "设备管理",
//         redirect: "/equipment/index",//可以使点击一级路由时，显示二级路由
//         component: () => import('../layout/basic-layout.vue'),
//         meta:{
//             name:[{name:"设备管理"}],
            
//         },
//         children: [
//             {
//                 path: "index",
//                 name: "设备管理",
//                 component: () => import('../views/equipment/index.vue'),
//                 meta:{
//                     name:[{name:"设备管理"}],
                    
//                 },
//             },
//             {
//                 path: "ChargingStation",
//                 name: "充电站管理",
//                 component: () => import('../views/equipment/ChargingStation.vue'),
//                 meta:{
//                     name:[{name:"充电站管理"}],
                    
//                 },
//             },
//         ]
//     },
//     {
//         path: "/charge",
//         name: "计费管理",
//         redirect: "/charge/index",
//         meta:{
//             name:[{name:"计费管理"}],
            
//         },
//         component: () => import('../layout/basic-layout.vue'),
//         children: [
//             {
//                 path: "index",
//                 name: "计费管理",
//                 component: () => import('../views/charge/index.vue'),
//                 meta:{
//                     name:[{name:"计费管理"}],
                    
//                 },
//             },
//             {
//                 path: "chargeDetails",
//                 name: "收费模板详情",
//                 component: () => import('../views/charge/details.vue'),
//                 meta:{
//                     name:[{name:"收费模板详情"}],
                    
//                 },
//             },
//         ]
//     },
//     {
//         path: "/statistics",
//         name: "统计报表",
//         redirect: "/statistics/index",
//         meta:{
//             name:[{name:"统计报表"}],
            
//         },
//         component: () => import('../layout/basic-layout.vue'),
//         children: [
//             {
//                 path: "index",
//                 name: "统计报表",
//                 component: () => import('../views/statistics/index.vue'),
//                 meta:{
//                     name:[{name:"统计报表"}],
                    
//                 },
//             },
//             {
//                 path: "alarm",
//                 name: "营收统计",
//                 component: () => import('../views/statistics/alarm.vue'),
//                 meta:{
//                     name:[{name:"营收统计"}],
                    
//                 },
//             },
//             {
//                 path: "revenue",
//                 name: "告警统计",
//                 component: () => import('../views/statistics/revenue.vue'),
//                 meta:{
//                     name:[{name:"告警统计"}],
                    
//                 },
//             },
//         ]
//     },
// ]